package view;

import java.util.Scanner;

import controller.GameSetUp;

public class GetPlayerMoves {
	Scanner sc = new Scanner(System.in);

	public int getPlayerRow() {
		int row;
		do {
		System.out.println("Enter row: ");
		row = sc.nextInt();
		} while (row < 1 || row > GameSetUp.TABLE_SIZE);
		return (row-1);
	}

	public int getPlayerCol() {
		int col;
		do {
			System.out.println("Enter col: ");
			col = sc.nextInt();
		} while (col < 1 || col > GameSetUp.TABLE_SIZE);
		return (col - 1);
	}
	
	public void printNotAvilableMove(){
		System.out.println("This square is already chosen!");
	}
	
	public void printWinner(String name){
		System.out.println("The winner is: " + name);
	}

	public void whoIsOnTurn(String name) {
		System.out.println("It's " + name + " turn!" );
	}
}
